FileNotFoundError: text 您所在的位置:网站首页 coreml stable diffusion FileNotFoundError: text

FileNotFoundError: text

2023-10-23 12:48| 来源: 网络整理| 查看: 265

After finishing steps in readme, I tried run the model, and it errored. I tried converting the model again but it still doesn't work.

Device: MacBook Pro 13inch M1 2020 16GB RAM Model: CompVis/stable-diffusion-v1-4

the error:

(coreml_stable_diffusion) henryyang@HXY ml-stable-diffusion % python -m python_coreml_stable_diffusion.pipeline --prompt "magic book on the table" -i ./models -o ./output --compute-unit ALL INFO:main:Setting random seed to 93 INFO:main:Initializing PyTorch pipe for reference configuration text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden. /Users/henryyang/anaconda3/envs/coreml_stable_diffusion/lib/python3.9/site-packages/transformers/models/clip/feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead. warnings.warn( INFO:main:Removed PyTorch pipe to reduce peak memory consumption INFO:main:Loading Core ML models in memory from ./models INFO:python_coreml_stable_diffusion.coreml_model:Loading text_encoder mlpackage Traceback (most recent call last): File "/Users/henryyang/anaconda3/envs/coreml_stable_diffusion/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/henryyang/anaconda3/envs/coreml_stable_diffusion/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/henryyang/StableDiffusion/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 540, in main(args) File "/Users/henryyang/StableDiffusion/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 471, in main coreml_pipe = get_coreml_pipe(pytorch_pipe=pytorch_pipe, File "/Users/henryyang/StableDiffusion/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 422, in get_coreml_pipe coreml_pipe_kwargs.update({ File "/Users/henryyang/StableDiffusion/ml-stable-diffusion/python_coreml_stable_diffusion/pipeline.py", line 423, in model_name: _load_mlpackage( File "/Users/henryyang/StableDiffusion/ml-stable-diffusion/python_coreml_stable_diffusion/coreml_model.py", line 96, in _load_mlpackage raise FileNotFoundError( FileNotFoundError: text_encoder CoreML model doesn't exist at ./models/Stable_Diffusion_version_CompVis_stable-diffusion-v1-4_text_encoder.mlpackage



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有